package com.xhu.collegestudentrentalsystem.module.user.service;

import com.xhu.collegestudentrentalsystem.module.user.entity.Feedback;
import com.xhu.collegestudentrentalsystem.module.user.entity.HouseOrder;
import com.xhu.collegestudentrentalsystem.module.user.entity.Page;
import com.xhu.collegestudentrentalsystem.module.user.entity.HouseScore;

import java.util.List;

/**
 * @author zhu huilin
 * @date 2023/3/29 13:17
 */
public interface IFeedbackService {
    /**
     * 提交反馈信息
     */
    public Integer submitFeedbackInfo(Feedback feedback);

    /**
     * 租客查询自己的反馈信息
     */
    public List<Feedback> findCustomerFeedbackList(Long userId, Page page);

    /**
     * 提交评分信息
     */
    public Integer submitScoreInfo(HouseScore houseScore);

    /**
     * 查询评分信息
     */
    public HouseScore findHouseScore(Long orderId, Long userId);

    /**
     * 插入回复信息，并修改反馈状态
     */
    public Integer updateReplyAndStatus(Long feedbackId, String reply, Integer status);
}
